class ItemList {
 late int time;
 late int duration;
  int? id;
  String? desc;


  ItemList({required this.time,required this.duration, this.desc,this.id});

  ItemList.fromJson(Map<String, dynamic> json) {
    time = json['time'];
    duration = json['duration'];
    desc = json['desc'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['time'] = time;
    data['duration'] = duration;
    data['desc'] = desc;
    data['id'] = id;
    return data;
  }
}
